/**
 * hello world
 */
package com.heliang.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import springfox.documentation.annotations.ApiIgnore;

/**
 * @author heliang
 *
 */
@RestController
public class HelloController {
	
	
	@ApiIgnore
	@RequestMapping("/helloword")
	public String index() {
		return "Hello World";
	}
	
	@RequestMapping(value = "/hello", method = RequestMethod.GET)
    @ResponseBody
	public String hello(@RequestParam String name) {
        return "Hello " + name;
    }

	
}
